import wx

try:
	from agw import aui
except ImportError: # if it's not there locally, try the wxPython lib.
	import wx.lib.agw.aui as aui

from OgreWindowWx import OgreWindow as owin
#from Demo_WX import DemoOgreWindow as win



def IInit(frame):
	ins = owin(frame, -1)
	ins.SetMinSize((640, 480))
	frame.getAuiManager().AddPane(ins, aui.AuiPaneInfo().Name("OgreWindow").CenterPane())
	ins.StartRendering()
	return ins



